import pytest,os
from Tools.Tools import send_email,get_log

if __name__ == '__main__':
    get_log()
    #pytest.main(['-s',r'D:\桌面\Project\PythonProject\API\tests\Test_addZF.py','--html=html.html'])
    pytest.main(['-s', r'D:\桌面\Project\PythonProject2\tests\Test_addZF.py', '--alluredir=allure','--clean-alluredir'])
    os.system('allure generate allure -o report --clean')
    # log_path = get_log()  # 获取动态日志路径
    # print(f"日志文件路径：{log_path}")  # 打印日志路径
    send_email(r'D:\桌面\Project\PythonProject\API\data\login.csv',r'D:\桌面\Project\PythonProject\API\data\login.csv')

